import React from 'react'
import { isLogin } from '@/utils'
import { Outlet, Navigate } from 'umi'
export default function index() {
  return (
    <>
      {
        isLogin()
        ?
        <Outlet/>
        :
        <Navigate to="/login"/>
      }
    </>
  )
}
